package com.zr.mapper.sys;

import com.zr.vo.sys.Role;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    @NotNull
    List<Role> selectList();

    @NotNull
    List<Role> selectRoleListByUserId(@Nullable String userId);
}